package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsRkProductWeekExtMapper;
import com.gugee.ins.common.dal.service.mark.InsRkProductWeekDao;
import com.gugee.ins.common.model.mysql.mark.InsRkProductWeek;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsRkProductWeekDaoImpl extends ServiceImpl<InsRkProductWeekExtMapper, InsRkProductWeek> implements InsRkProductWeekDao {

    /**
     * 周榜
     * @param dateCode
     * @param category
     * @param limitStartTime
     * @param limitEndTime
     * @param limitCount
     */
    @Override
    public void insertRkProductWeek(int dateCode, String category,long limitStartTime,long limitEndTime,long limitCount) {
        long now = System.currentTimeMillis() / 1000;
        baseMapper.insertRkProductWeek(dateCode,category,limitStartTime,limitEndTime,limitCount,now);
    }
}
